import request from '@/utils/request'

const api = {
    apipath: '/swgl/lwdw'
}

export function getList(params) {
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params: params
    })
}

export function getInfo(unid) {
    return request({
        url: api.apipath + '/' + unid,
        method: 'get'
    })
}

export function saveInfo(params) {
    return request({
        url: api.apipath,
        method: 'post',
        data: params
    })
}

export function deleteInfo(params) {
    return request({
        url: api.apipath,
        method: 'delete',
        params: params
    })
}

export const swlbExport = api.apipath + '/export'